﻿using RXY_Mall.Services.Order.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RXY_Mall.Services.Order
{
    public interface IOrderService
    {
        /// <summary>
        /// 拆单功能
        /// </summary>
        /// <param name="order_id">订单编号</param>
        /// <returns></returns>
        string SeparateOrder(int order_id);

        /// <summary>
        /// 发货订单
        /// </summary>
        /// <param name="api_order_no_list"></param>
        /// <returns></returns>
        Task<ResponseService<OrderStatusOutput>> ShipmentOrder(List<string> api_order_no_list);

        /// <summary>
        /// 收货订单
        /// </summary>
        /// <param name="api_order_no_list">订单号</param>
        /// <returns></returns>
        Task<ResponseService<OrderStatusOutput>> ReceiveOrder(List<string> api_order_no_list);

        /// <summary>
        /// 取消订单
        /// </summary>
        /// <param name="api_order_no_list">订单号</param>
        /// <returns></returns>
        Task<ResponseService<OrderStatusOutput>> CancelOrder(List<string> api_order_no_list);


        /// <summary>
        /// 同步添加订单
        /// </summary>
        void SyncAddOrder();

        /// <summary>
        /// 同步取消订单
        /// </summary>
        void SyncCancelOrder();
    }
}
